{* Notice: This template is recursive. *}
{if count($nav_items) gt 0}
	<ul>
		{foreach from=$nav_items item=nav_item key=index name=linklist}
			<li>
				{$nav_item.link_text}
				|
				{if $smarty.foreach.linklist.first}
					<span style="color:#69c;">Move Up</span>
				{else}
					<a href="/navigation/moveup/nav_id/{$nav_item.id}/parent_id/{$nav_item.parent_id}/role_id/{$role.id}">Move Up</a>
				{/if}
				|
				{if $smarty.foreach.linklist.last}
					<span style="color:#69c;">Move Down</span>
				{else}
					<a href="/navigation/movedown/nav_id/{$nav_item.id}/parent_id/{$nav_item.parent_id}/role_id/{$role.id}">Move Down</a>
				{/if}
				|
				<a href="/navigation/edit/nav_id/{$nav_item.id}/role_id/{$role.id}">Edit</a>
				|
				<a href="/navigation/delete/nav_id/{$nav_item.id}/role_id/{$role.id}">Delete</a>
				{include file="file:$theme_global/admin/navigation/_role_nav_tree.tpl" nav_items=$nav_item.children}
			</li>
		{/foreach}
	</ul>
{/if}
